package com.project.slsx.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.project.slsx.R;
import com.project.slsx.bean.CashGoodsListBean;

public class MultiTypeAdapter extends BaseQuickAdapter<CashGoodsListBean.ResultBean.OptionsBean, BaseViewHolder> {
    public MultiTypeAdapter(int layoutResId) {
        super(layoutResId);
    }

    @Override
    protected void convert(BaseViewHolder holder, CashGoodsListBean.ResultBean.OptionsBean item) {
        holder.setText(R.id.tv_multi_name,item.getName() +"(" + item.getTotal() +")");
    }
}
